package com.tanhua.dubbo.api;

import com.tanhua.model.mongo.UserLike;

import java.util.List;
import java.util.Map;

public interface UserLikeApi {

    //保存或者更新
    Boolean saveOrUpdate(Long userId, Long likeUserId, boolean isLike);

    //List findLoverList(Long userId);

    Map  counts(Long userId);

    Long countLovers(Long userId);

    List<UserLike> findByUserId(Long userId, Integer page, Integer pagesize);

    void deleteById(Long uid);
}
